import httpTokenRequest from "../util/request.js"

export function stuRegister(data) {
  return httpTokenRequest({
    url: '/student/register',
    method: 'post',
    data: data
  })
}

/*根据课程顾问id查询查询正式学员 */
export function formalStuByUserId(userId,searchData){
	return httpTokenRequest({
		url:"/student/formalStuByUserId",
		data : {
		      userId:userId,
		      searchData:searchData
		    },
		method:"get"
	})
}

/*根据课程顾问id查询查询意向学员 */
export function intentionStuByUserId(userId,searchData){
	return httpTokenRequest({
		url:"/student/intentionStuByUserId",
		data : {
		      userId:userId,
		      searchData:searchData
		    },
		method:"get"
	})
}

/*根据课程顾问id查询查询课程快到期学员 */
export function remindStuByUserId(userId){
	return httpTokenRequest({
		url:"/student/remindStuByUserId",
		data : {
		      userId:userId
		    },
		method:"get"
	})
}

/*根据学员id查询正式学员信息 */
export function oneStudnetByStudentId(studentId){
	return httpTokenRequest({
		url:"/student/getOneStudentByStudentId",
		data: {studentId},
		method:"get"
	})
}

/*根据学员id查询意向学员信息*/
export function oneIntentionStuByStudentId(studentId){
	return httpTokenRequest({
		url:"/student/getOneIntentionStuByStudentId",
		data : {
		      studentId:studentId
		    },
		method:"get"
	})
}
